const router = require('koa-router')()
const CreateSequelize = require('./sequelize')
let sequelize = new CreateSequelize()
sequelize.init_sequeleze()
router.prefix('/users')

router.get('/', function (ctx, next) {
  ctx.body = 'this is a users response!'
})

router.get('/bar', async function (ctx, next) {
  // let newData = await sequelize.select("select * from info")
  // console.log(newData);
  /** */
  ctx.body = '测试'
})

module.exports = router
